package com.bsoft.gol.hbs.healthinfo;

public abstract class AbstractState implements State {


    private int state;

    private String errorMessage;

    public AbstractState(int state) {
        this.state = state;
    }

    public AbstractState() {
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getState() {
        return state;
    }

    /**
     * 设置错误消息
     *
     */
    protected void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public String getErrorMessage() {
        return this.errorMessage;
    }

}
